com.willowtreeapps.android.shared.lv
Class FilterAdapter<T extends Sectionable>
java.lang.Object
android.widget.BaseAdapter
com.willowtreeapps.android.shared.lv.AmazingAdapter
com.willowtreeapps.android.shared.lv.FilterAdapter<T>
- All Implemented Interfaces:
- android.widget.AbsListView.OnScrollListener, android.widget.Adapter, android.widget.Filterable, android.widget.ListAdapter, android.widget.SectionIndexer, android.widget.SpinnerAdapter
public abstract class FilterAdapter<T extends Sectionable>
- extends AmazingAdapter
- implements android.widget.Filterable
User: mlake
Date: 5/17/11
Time: 11:13 AM
Fields inherited from interface android.widget.AbsListView.OnScrollListener |
SCROLL_STATE_FLING, SCROLL_STATE_IDLE, SCROLL_STATE_TOUCH_SCROLL |
Fields inherited from interface android.widget.Adapter |
IGNORE_ITEM_VIEW_TYPE, NO_SELECTION |
Methods inherited from class android.widget.BaseAdapter |
areAllItemsEnabled, getDropDownView, getItemViewType, getViewTypeCount, hasStableIds, isEmpty, isEnabled, notifyDataSetChanged, notifyDataSetInvalidated, registerDataSetObserver, unregisterDataSetObserver |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FilterAdapter
public FilterAdapter()
setDataManually
public void setDataManually(List<android.util.Pair<String,List<T>>> data)
setData
public void setData(List<T> unSectionedList)
clear
public void clear()
replaceDataInSection
public void replaceDataInSection(String section,
List<T> dataForSection)
getCount
public int getCount()
- Specified by:
getCount
in interface android.widget.Adapter
getItem
public T getItem(int position)
- Specified by:
getItem
in interface android.widget.Adapter
getItemId
public long getItemId(int position)
- Specified by:
getItemId
in interface android.widget.Adapter
getPositionForSection
public int getPositionForSection(int section)
- Specified by:
getPositionForSection
in interface android.widget.SectionIndexer
- Specified by:
getPositionForSection
in class AmazingAdapter
getSectionForPosition
public int getSectionForPosition(int position)
- Specified by:
getSectionForPosition
in interface android.widget.SectionIndexer
- Specified by:
getSectionForPosition
in class AmazingAdapter
getSections
public String[] getSections()
- Specified by:
getSections
in interface android.widget.SectionIndexer
- Specified by:
getSections
in class AmazingAdapter
getSectionsWithFullName
public String[] getSectionsWithFullName()
isPositionTopOfSection
public boolean isPositionTopOfSection(int position)
isPositionBottomOfSection
public boolean isPositionBottomOfSection(int position)
getFilter
public android.widget.Filter getFilter()
- Specified by:
getFilter
in interface android.widget.Filterable
Copyright © 2011. All Rights Reserved.